<template>
  <div class="toastMessageBox" v-show="show">{{message}}</div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: 'toastMessage',
  data () {
    return {
      message: '',
      show: false
    }
  }
}
</script>

<style lang='less' scoped>
.toastMessageBox{
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
}
</style>